﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KandieWebProjectI.Domain.Model;
using KandieWebProjectI.DAL.Dal;

namespace KandieWebProjectI.BLL.Controller
{
    public class ClienteBLL : IControllerBLL<Cliente>
    {
        private ClienteDao cDao;

        public ClienteBLL()
        {
            this.cDao = new ClienteDao();
        }

        public bool Gravar(Cliente entity)
        {
            return cDao.Gravar(entity);
        }

        public bool Deletar(int _id)
        {
            return cDao.Deletar(_id);
        }

        public bool Atualizar(Cliente entity)
        {
            return cDao.Atualizar(entity);
        }

        public IList<Cliente> RetornaTodos()
        {
            return cDao.RetornaTodos();
        }

        public Cliente RetornaPorId(int _id)
        {
            return cDao.RetornaPorId(_id);
        }
    }
}
